package com.codemes.happylist.modules.olympic;

import com.codemes.happylist.modules.json.JsonFormatController;
import de.felixroske.jfxsupport.FXMLController;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.web.WebView;
import lombok.extern.slf4j.Slf4j;

import java.net.URL;
import java.util.ResourceBundle;

/**
 * 冬奥会敦敦 3D
 * @author nscoffee
 */
@FXMLController
@Slf4j
public class Dundun3dController implements Initializable {
    @FXML
    public WebView dundunWebView;

    @Override
    public void initialize(URL url, ResourceBundle resourceBundle) {
        String dundun3dPage = "/fxml/olympic/dragonirs.html";
        String dundunUrl = Dundun3dController.class.getResource(dundun3dPage).toString();
        log.info("page->{}", dundunUrl);
        dundunWebView.getEngine().load(dundunUrl);
    }
}
